"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const electron_1 = require("electron");
electron_1.contextBridge.exposeInMainWorld('electronAPI', {
    readDirectory: (path) => electron_1.ipcRenderer.invoke('read-directory', path),
    createFolder: (parentPath, folderName) => electron_1.ipcRenderer.invoke('create-folder', parentPath, folderName),
    renameFolder: (oldPath, newName) => electron_1.ipcRenderer.invoke('rename-folder', oldPath, newName),
    deleteFolder: (folderPath) => electron_1.ipcRenderer.invoke('delete-folder', folderPath),
    searchInDirectory: (folderPath, keyword) => electron_1.ipcRenderer.invoke('search-in-directory', folderPath, keyword),
    openFileExternal: (filePath) => electron_1.ipcRenderer.invoke('open-file-external', filePath),
    getFolderSteps: (rootPath, targetPath) => electron_1.ipcRenderer.invoke('get-folder-steps', rootPath, targetPath),
    sendChunkToMain: (data, targetDir) => electron_1.ipcRenderer.send('upload-chunk', data),
});
